package cn.sciento.onelink.sim.combo.changeable.offering;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class SimChangeableOfferingResult {
    private String currenPage;
    private String flag;
    @JsonProperty("offeringInfoList")
    private List<OfferingInfo> offeringInfo;
    @Data
    public static class ChildOffer{
        private String childOfferId;
        private String childOfferName;
        @JsonFormat(pattern = "yyyy-MM-dd hh:MM:ss", timezone = "GMT+8")
        private Date effectiveDate;
        @JsonFormat(pattern = "yyyy-MM-dd hh:MM:ss", timezone = "GMT+8")
        private Date expriedDate;
    }
    @Data
    public static class OfferingInfo{
        private String offeringId;
        private String offeringName;
        private String offeringType;
        private String paymentMode;
        @JsonFormat(pattern = "yyyy-MM-dd hh:MM:ss", timezone = "GMT+8")
        private Date effectiveDate;
        @JsonFormat(pattern = "yyyy-MM-dd hh:MM:ss", timezone = "GMT+8")
        private Date expiriedDate;
        private String description;
    }
}